package com.temp.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class Category implements Serializable {

    /**
     * 类别ID主键
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 类别标题
     */
    private String title;

    /**
     * 类别图标
     */
    private String icon;

    /**
     * 类别主色
     */
    private String color;

    /**
     * 类别描述
     */
    private String description;

    /**
     * 创建时间
     */
    private LocalDateTime createdAt;
}
